<!DOCTYPE html>
<html>
<head><meta name="generator" content="Hexo 3.8.0">
  <meta charset="utf-8">
  

  
  <title>Hexo 部署到 Github | Amoxuk</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="description" content="Hexo 部署到 Github安装hexo-deployer-git插件1npm install hexo-deployer-git --save 配置文件./_config.yml下修改,注意：地址为你clone的地址，ssh对应需要ssh-key，https需要在地址上配置账号和http-password.123456# Deployment## Docs: https://hexo.io/d">
<meta property="og:type" content="article">
<meta property="og:title" content="Hexo 部署到 Github">
<meta property="og:url" content="https://amoxuk.gitee.io/2019/03/04/amo/index.html">
<meta property="og:site_name" content="Amoxuk">
<meta property="og:description" content="Hexo 部署到 Github安装hexo-deployer-git插件1npm install hexo-deployer-git --save 配置文件./_config.yml下修改,注意：地址为你clone的地址，ssh对应需要ssh-key，https需要在地址上配置账号和http-password.123456# Deployment## Docs: https://hexo.io/d">
<meta property="og:locale" content="default">
<meta property="og:updated_time" content="2019-03-03T17:54:58.373Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Hexo 部署到 Github">
<meta name="twitter:description" content="Hexo 部署到 Github安装hexo-deployer-git插件1npm install hexo-deployer-git --save 配置文件./_config.yml下修改,注意：地址为你clone的地址，ssh对应需要ssh-key，https需要在地址上配置账号和http-password.123456# Deployment## Docs: https://hexo.io/d">
  
    <link rel="alternate" href="/atom.xml" title="Amoxuk" type="application/atom+xml">
  
  
    <link rel="icon" href="/favicon.ico">
  
  
    <link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
  
  <link rel="stylesheet" href="/css/style.css">
</head>
</html>
<body>
  <div id="container">
    <div id="wrap">
      <header id="header">
  <div id="banner"></div>
  <div id="header-outer" class="outer">
    <div id="header-title" class="inner">
      <h1 id="logo-wrap">
        <a href="/" id="logo">Amoxuk</a>
      </h1>
      
    </div>
    <div id="header-inner" class="inner">
      <nav id="main-nav">
        <a id="main-nav-toggle" class="nav-icon"></a>
        
          <a class="main-nav-link" href="/">Home</a>
        
          <a class="main-nav-link" href="/archives">Archives</a>
        
      </nav>
      <nav id="sub-nav">
        
          <a id="nav-rss-link" class="nav-icon" href="/atom.xml" title="RSS Feed"></a>
        
        <a id="nav-search-btn" class="nav-icon" title="Search"></a>
      </nav>
      <div id="search-form-wrap">
        <form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit">&#xF002;</button><input type="hidden" name="sitesearch" value="https://amoxuk.gitee.io"></form>
      </div>
    </div>
  </div>
</header>
      <div class="outer">
        <section id="main"><article id="post-amo" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/2019/03/04/amo/" class="article-date">
  <time datetime="2019-03-03T17:28:48.000Z" itemprop="datePublished">2019-03-04</time>
</a>
    
  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 class="article-title" itemprop="name">
      Hexo 部署到 Github
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <h2 id="Hexo-部署到-Github"><a href="#Hexo-部署到-Github" class="headerlink" title="Hexo 部署到 Github"></a>Hexo 部署到 Github</h2><h3 id="安装hexo-deployer-git插件"><a href="#安装hexo-deployer-git插件" class="headerlink" title="安装hexo-deployer-git插件"></a>安装hexo-deployer-git插件</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm install hexo-deployer-git --save</span><br></pre></td></tr></table></figure>
<h3 id="配置文件"><a href="#配置文件" class="headerlink" title="配置文件"></a>配置文件</h3><p>./_config.yml下<br>修改,注意：地址为你clone的地址，ssh对应需要ssh-key，https需要在地址上配置账号和http-password.<br><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line"># Deployment</span><br><span class="line">## Docs: https://hexo.io/docs/deployment.html</span><br><span class="line">deploy:</span><br><span class="line">    type: git</span><br><span class="line">    repo: git@github.com:amoxuk/amoxuk.github.io.git</span><br><span class="line">    branch: master</span><br></pre></td></tr></table></figure></p>
<h3 id="发布"><a href="#发布" class="headerlink" title="发布"></a>发布</h3><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">hexo d -g</span><br></pre></td></tr></table></figure>
<h3 id="修改ICO（页面图标）"><a href="#修改ICO（页面图标）" class="headerlink" title="修改ICO（页面图标）"></a>修改ICO（页面图标）</h3><p>放置一张合适的图标图片到<code>.\themes\你当前使用的主题\source</code>下面，修改配置文件，路径：<code>.\themes\你当前使用的主题\_config.yml</code><br><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">favicon: /favicon.ico</span><br></pre></td></tr></table></figure></p>
<p>如果文件名字为：<code>favicon.ico</code>，则不需要任何配置，自动部署就生效。</p>

      
    </div>
    <footer class="article-footer">
      <a data-url="https://amoxuk.gitee.io/2019/03/04/amo/" data-id="cjt0816pr00009cjjgr8yuyz1" class="article-share-link">Share</a>
      
      
    </footer>
  </div>
  
    
<nav id="article-nav">
  
    <a href="/2019/03/08/浏览器反调试/" id="article-nav-newer" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Newer</strong>
      <div class="article-nav-title">
        
          浏览器反调试
        
      </div>
    </a>
  
  
    <a href="/2019/03/04/hello-world/" id="article-nav-older" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Older</strong>
      <div class="article-nav-title">Hello World</div>
    </a>
  
</nav>

  
</article>

</section>
        
          <aside id="sidebar">
  
    

  
    

  
    
  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Archives</h3>
    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2019/03/">March 2019</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">Recent Posts</h3>
    <div class="widget">
      <ul>
        
          <li>
            <a href="/2019/03/10/client/">(no title)</a>
          </li>
        
          <li>
            <a href="/2019/03/08/浏览器反调试/">浏览器反调试</a>
          </li>
        
          <li>
            <a href="/2019/03/04/amo/">Hexo 部署到 Github</a>
          </li>
        
          <li>
            <a href="/2019/03/04/hello-world/">Hello World</a>
          </li>
        
      </ul>
    </div>
  </div>

  
</aside>
        
      </div>
      <footer id="footer">
  
  <div class="outer">
    <div id="footer-info" class="inner">
      &copy; 2019 amoxuk<br>
      Powered by <a href="http://hexo.io/" target="_blank">Hexo</a>
    </div>
  </div>
</footer>
    </div>
    <nav id="mobile-nav">
  
    <a href="/" class="mobile-nav-link">Home</a>
  
    <a href="/archives" class="mobile-nav-link">Archives</a>
  
</nav>
    

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>


  <link rel="stylesheet" href="/fancybox/jquery.fancybox.css">
  <script src="/fancybox/jquery.fancybox.pack.js"></script>


<script src="/js/script.js"></script>



  </div>
</body>
</html>